Skip to main content
Log in

DDoS attack detection using MLP and Random Forest Algorithms

  • Original Research
  • Published:
International Journal of Information Technology Aims and scope Submit manuscript

Abstract

Distributed Denial of Service (DDoS) attacks continue to be the most dangerous over the Internet. With the rapid advancement of information and communication technology, the consequences of a DDoS attack are becoming increasingly devastating. As a result, DDoS attack detection research is now becoming significantly important. In this paper, we employed different types of machine learning techniques for the detection of DDoS attack packets and their types. Random Forest (RF), multi-layer perceptrons (MLP), Support Vector Machine and K-Nearest Neighbor are used in our work and the methods have presented promising results. RF showed an accuracy of 99.13% on both train and validation data and 97% on full test data. On the other hand, the MLP showed an accuracy of 97.96% on train data and 98.53% on validation data and 74% on full test dataset.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

References

  1. Wang M, Lu Y, Qin J (2020) A dynamic MLP-based DDoS attack detection method using feature selection and feedback. Comput Secur. https://doi.org/10.1016/j.cose.2019.101645

    Article  Google Scholar 

  2. Patra I (2021) Microsoft says it mitigated one of the largest DDoS attacks. https://t.ly/LuUc. Accessed 07 October 2021

  3. Mahjabin T, Xiao Y, Sun G, Jiang W (2017) A survey of distributed denial-of-service attack, prevention, and mitigation techniques. Int J Distrib Sensor Netw. https://doi.org/10.1177/1550147717741463

    Article  Google Scholar 

  4. Lopez M (2020) NETSCOUT Threat Intelligence Report Shows Dramatic Increase in Multivector DDoS Attacks in First-Half 2020. https://t.ly/owDP. Accessed 07 October 2021

  5. Vega A, Bose P, Buyuktosunoglu A (2017) Chapter e6 - Embedded security. Rugged embedded systems. Morgan Kaufmann, Cambridge, pp e1–e74

    Google Scholar 

  6. Ganti V, Yoachimik O (2021) DDoS Attack Trends for Q3 2021. https://t.ly/kFs8. Accessed 15 October 2021

  7. Brodsky Z (2020) The Psychology Behind DDoS: Motivations and Methods, https://t.ly/vB5d. Accessed 07 October 2021

  8. Saini PS, Behal S, Bhatia S (2020) Detection of DDoS attacks using machine learning algorithms. In IEEE 7th International Conference on Computing for Sustainable Global Development (INDIACom). https://doi.org/10.23919/INDIACom49435.2020.9083716

  9. Bindra N, Sood M (2019) Detecting DDoS attacks using machine learning techniques and contemporary intrusion detection dataset. Autom Control Comput Sci 53:419–428. https://doi.org/10.3103/S0146411619050043

    Article  Google Scholar 

  10. Shieh C-S, Lin W-W, Nguyen T-T, Chen C-H, Horng M-F, Miu D (2021) Detection of unknown DDoS attacks with deep learning and Gaussian Mixture Model. Appl Sci. https://doi.org/10.3390/app11115213

    Article  Google Scholar 

  11. Manohar H, Abhishek K, Prasad B (2019) DDoS attack detection using C5.0 machine learning algorithm. Int J Wirel Microwave Technol. https://doi.org/10.5815/ijwmt.2019.01.06

    Article  Google Scholar 

  12. Bhuvaneswari NG, Selvakumar S (2019) Deep radial intelligence with cumulative incarnation approach for detecting denial of service attacks. Neurocomputing. https://doi.org/10.1016/j.neucom.2019.02.047

    Article  Google Scholar 

  13. Aamir M, Ali ZSM (2021) Clustering based semi-supervised machine learning for DDoS attack classification. J King Saud Univ 33(4):436–446. https://doi.org/10.1016/j.jksuci.2019.02.003

    Article  Google Scholar 

  14. Narasimha Mallikarjunan K, Bhuvaneshwaran A, Sundarakantham K, Mercy Shalinie S (2019) Computational intelligence: theories, applications and future directions. Springer, Singapore

    Google Scholar 

  15. Elejla O, Belaton B, Anbar M, Al Absi B, Al-Ani A (2019) Comparison of Classification Algorithms on ICMPv6-Based DDoS Attacks Detection: 5th ICCST 2018, Kota Kinabalu, Malaysia, 29–30 August 2018 Springer. https://doi.org/10.1007/978-981-13-2622-6_34

  16. Shone N, Ngoc TN, Phai VD, Shi AQ (2018) deep learning approach to network intrusion detection. IEEE Trans Emerg Topics Comput Intell 2:41–50. https://doi.org/10.1109/TETCI.2017.2772792

    Article  Google Scholar 

  17. I. Sofi, A. Mahajan, V. Mansotra (2017) Machine Learning Techniques used for the Detection and Analysis of Modern Types of DDoS Attacks, learning, vol. 4, no. 6, pp. 1085–1092

  18. Brun O, Yonghua Y, Erol G (2018) Deep learning with dense random neural network for detecting attacks against IoT-connected home environments. Procedia Comput Sci 134:458–463. https://doi.org/10.1016/j.procs.2018.07.183

    Article  Google Scholar 

  19. Dayanandam G, Rao T, Babu D, Durga S (2019) DDoS attacks-analysis and prevention. In: Saini H, Sayal R, Govardhan A, Buyya R (eds) Innovations in computer science and engineering. Lecture Notes in Networks and Systems, vol 32. Springer, Singapore

    Google Scholar 

  20. Elsayed MS, Le-Khac NA, Dev S, Jurcut AD (2020) DDoSNet: a deep-learning model for detecting network attacks. In Proc. - 21st IEEE Int. Symp. a World Wireless, Mob. Multimed. Networks, WoWMoM 2020, pp. 391–396, 2020. arXiv2006.13981

  21. Catak FO, Mustacoglu AF (2019) Distributed denial of service attack detection using autoencoder and deep neural networks. J Intell Fuzzy Syst 37:3969–3979. https://doi.org/10.3233/JIFS-190159

    Article  Google Scholar 

  22. Gormez Y, Aydin Z, Karademir R, Gungor VC (2020) A deep learning approach with Bayesian optimization and ensemble classifiers for detecting denial of service attacks. Int J Commun Syst. https://doi.org/10.1002/dac.4401

    Article  Google Scholar 

  23. Aytaç T, Aydın MA, Zaim AH (2020) Detection DDOS attacks using machine learning. Methods. https://doi.org/10.5152/electrica.2020.20049

    Article  Google Scholar 

  24. Cil AE, Yildiz K, Buldu A (2021) Detection of DDoS attacks with feed forward based deep neural network model. Expert Syst Appl 169:114520. https://doi.org/10.1016/j.eswa.2020.114520

    Article  Google Scholar 

  25. Dataset of NSL-KDD (2015) University of new brunswick. http://www.unb.ca/research/iscx/dataset/iscx-NSL-KDD-dataset.html. Accessed 07 October 2021

  26. Iqbal S (2021) Machine learning: algorithms, real-world applications and research directions. SN Comput Sci. https://doi.org/10.1007/s42979-021-00592-x

    Article  Google Scholar 

  27. Asiri S (2018) Machine learning classifiers. https://t.ly/gFMb. Accessed 11 November 2021

  28. Khanday O, Dadvandipour S (2020) Analysis of machine learning algorithms for character recognition: a case study on handwritten digit recognition. Indones J Electr Eng Comput Sci 21:574–581. https://doi.org/10.11591/ijeecs.v20.i1

  29. Aswathisasidharan (2021) Support Vector Machine Algorithm https://shorturl.at/gjHIY

  30. Gandhi R (2018) Support Vector Machine: Introduction to Machine Learning Algorithms, https://shorturl.at/koFYZ. Accessed 13 December 2021

  31. Alaeddine M, Ben Fredj O, Omar C, Abdelouahid D, Moez K (2022) Denial of service attack detection and mitigation for internet of things using looking-back-enabled machine learning techniques. Comput Electr Eng. https://doi.org/10.1016/j.compeleceng.2022.107716

  32. Yadigar I, Fargana A (2018) Deep learning method for denial of service attack detection based on restricted Boltzmann machine. Big Data 6:159–169. https://doi.org/10.1089/big.2018.0023

  33. Tang TA, McLernon D, Mhamdi L, Zaidi SAR, Ghogho M (2019) Intrusion detection in sdn-based networks: deep recurrent neural network approach. In: Alazab M, Tang M (eds) Deep learning applications for cyber security. Advanced Sciences and Technologies for Security Applications. Springer, Cham

  34. Rusyaidi M, Jaf S, Zunaidi I (2022) Detecting DDoS in network traffic with deep learning. Int J Adv Comput Sci Appl 13(1)

  35. Aslan Ö (2022) Using machine learning techniques to detect attacks in computer networks. Aegean Summit 4th International Applied Sciences Congress

  36. Liu C, Gu Z, Wang J (2021) A hybrid intrusion detection system based on scalable K-Means+ random forest and deep learning. IEEE Access 9:75729–75740. https://doi.org/10.1109/ACCESS.2021.3082147

    Article  Google Scholar 

  37. Ugwu CC, Obe OO, Popola OS, Adetunmbi AO (2021) A distributed denial of service attack detection system using long short term memory with singular value decomposition. IEEE 2nd International Conference on Cyberspac (CYBER NIGERIA), pp. 112–118. https://doi.org/10.1109/CYBERNIGERIA51635.2021.9428870

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ashfaq Ahmad Najar.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Najar, A.A., Manohar Naik, S. DDoS attack detection using MLP and Random Forest Algorithms. Int. j. inf. tecnol. 14, 2317–2327 (2022). https://doi.org/10.1007/s41870-022-01003-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s41870-022-01003-x

Keywords

Navigation